<!DOCTYPE html>
<html lang="zh-CN">
	<head>
		<meta charset="utf-8">
		<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
		<title>会员中心</title>
		<meta name="keywords" content="">
		<meta name="description" content="">
		<script src="js/rem.js"></script>
		<script src="js/jquery.min.js" type="text/javascript"></script>
		<link rel="stylesheet" type="text/css" href="css/base.css" />
		<link rel="stylesheet" type="text/css" href="css/page.css" />
		<link rel="stylesheet" type="text/css" href="css/all.css" />
		<link rel="stylesheet" type="text/css" href="css/mui.min.css" />
		<link rel="stylesheet" type="text/css" href="css/loaders.min.css" />
		<link rel="stylesheet" type="text/css" href="css/loading.css" />
		<link rel="stylesheet" type="text/css" href="slick/slick.css" />
		<script type="text/javascript">
			$(window).load(function() {
				$(".loading").addClass("loader-chanage")
				$(".loading").fadeOut(300)
			})
		</script>
	</head>
	<!--loading页开始-->
	<div class="loading">
		<div class="loader">
			<div class="loader-inner pacman">
				<div></div>
				<div></div>
				<div></div>
				<div></div>
				<div></div>
			</div>
		</div>
	</div>
	<!--loading页结束-->
	<body>
		<!--header star-->
		<header class="mui-bar mui-bar1 mui-bar-nav mui-bar-nav1" id="header">
			<a class="btn" href="javascript:history.go(-1)">
				<i class="iconfont icon-fanhui"></i>
			</a>
			<div class="top-sch-box top-sch-boxtwo top-sch-boxthree flex-col">
				返回
			</div>
		</header>
		<!--header end-->

		<div class="warp clearfloat">
			<div class="h-top clearfloat box-s">
				<div class="tu clearfloat fl">
					<img src="img/touxiang.png" />
				</div>
				<div class="content clearfloat fl">
					<p class="hname" id="hname"></p>
					<p class="htel" id="htel"></p>
					<p class="hpthy">会员</p>
				</div>
				<!-- <a href="#" class="btn db clearfloat fr ra3">签到</a> -->
			</div>
			<div class="cash clearfloat">
				<!-- <div class="shang clearfloat">
	    			<ul>
	    				<li>
	    					<a href="#">
	    						<p>74.00</p>
	    						<span>现金余额</span>
	    					</a>
	    				</li>
	    				<li>
	    					<a href="#">
	    						<p>4789</p>
	    						<span>可用积分</span>
	    					</a>
	    				</li>
	    				<li>
	    					<a href="#">
	    						<p>104598</p>
	    						<span>待用积分</span>
	    					</a>
	    				</li>
	    			</ul>
	    		</div>
	    		<div class="shang xia clearfloat">
	    			<ul>
	    				<li>
	    					<a href="#">
	    						<p>31000</p>
	    						<span>商品兑换券</span>
	    					</a>
	    				</li>
	    				<li>
	    					<a href="#">
	    						<p>56179</p>
	    						<span>可倍增积分额值</span>
	    					</a>
	    				</li>
	    			</ul>
	    		</div>
	    	</div> -->
				<!-- <div class="cashlist clearfloat">
	    		<ul>
	    			<li class="box-s">
	    				<a href="account.html">
	    					<p class="fl">现金账户管理</p>
	    					<i class="iconfont icon-jiantou1 fr"></i>
	    				</a>
	    			</li>
	    			<li class="box-s">
	    				<a href="recharge.html">
	    					<p class="fl">现金充值</p>
	    					<i class="iconfont icon-jiantou1 fr"></i>
	    				</a>
	    			</li>
	    			<li class="box-s">
	    				<a href="zhuanzhang.html">
	    					<p class="fl">现金转账</p>
	    					<i class="iconfont icon-jiantou1 fr"></i>
	    				</a>
	    			</li>
	    		</ul>
	    	</div> -->
				<!-- <div class="cashlist clearfloat">
	    		<ul>
	    			<li class="box-s">
	    				<a href="jfguanli.html">
	    					<p class="fl">可用积分管理</p>
	    					<i class="iconfont icon-jiantou1 fr"></i>
	    				</a>
	    			</li>
	    			<li class="box-s">
	    				<a href="jfguanli.html">
	    					<p class="fl">待用积分管理</p>
	    					<i class="iconfont icon-jiantou1 fr"></i>
	    				</a>
	    			</li>
	    			<li class="box-s">
	    				<a href="jfguanli.html">
	    					<p class="fl">业务奖励积分</p>
	    					<i class="iconfont icon-jiantou1 fr"></i>
	    				</a>
	    			</li>
	    			<li class="box-s">
	    				<a href="jfzhuanyong.html">
	    					<p class="fl">可用转待用</p>
	    					<i class="iconfont icon-jiantou1 fr"></i>
	    				</a>
	    			</li>
	    			<li class="box-s">
	    				<a href="jfzhuanzhang.html">
	    					<p class="fl">可用积分转账</p>
	    					<i class="iconfont icon-jiantou1 fr"></i>
	    				</a>
	    			</li>
	    		</ul>
	    	</div> -->
				<!-- <div class="cashlist clearfloat">
	    		<ul>
	    			<li class="box-s">
	    				<a href="spduihuan.html">
	    					<p class="fl">商品兑换券</p>
	    					<i class="iconfont icon-jiantou1 fr"></i>
	    				</a>
	    			</li>
	    			<li class="box-s">
	    				<a href="baodan.html">
	    					<p class="fl">报单商品券</p>
	    					<i class="iconfont icon-jiantou1 fr"></i>
	    				</a>
	    			</li>
	    		</ul>
	    	</div> -->
				<div class="cashlist clearfloat">
					<ul>
						<!-- <li class="box-s">
	    				<a href="sqlianmeng.html">
	    					<p class="fl">申请联盟商家</p>
	    					<i class="iconfont icon-jiantou1 fr"></i>
	    				</a>
	    			</li>
	    			<li class="box-s">
	    				<a href="sqyunying.html">
	    					<p class="fl">申请运营中心</p>
	    					<i class="iconfont icon-jiantou1 fr"></i>
	    				</a>
	    			</li>
	    			<li class="box-s">
	    				<a href="order.html">
	    					<p class="fl">消费订单管理</p>
	    					<i class="iconfont icon-jiantou1 fr"></i>
	    				</a>
	    			</li>
	    			<li class="box-s">
	    				<a href="friend.html">
	    					<p class="fl">我的好友</p>
	    					<i class="iconfont icon-jiantou1 fr"></i>
	    				</a>
	    			</li> -->
					<li class="box-s">
						<a href="order.html">
							<p class="fl" style="float:none;">我的订单</p>
							<i class="iconfont icon-jiantou1 fr"></i>
						</a>
					</li>
						<li class="box-s">
							<a href="address.html">
								<p class="fl" style="float:none;">收货地址管理</p>
								<i class="iconfont icon-jiantou1 fr"></i>
							</a>
						</li>
						<li class="box-s">
							<a href="xiugai.html">
								<p class="fl" style="float:none;">修改密码</p>
								<i class="iconfont icon-jiantou1 fr"></i>
							</a>
						</li>
						<li class="box-s">
							<a href="xiugainame.html">
								<p class="fl" style="float:none;">修改个人信息</p>
								<i class="iconfont icon-jiantou1 fr"></i>
							</a>
						</li>
					</ul>
				</div>
				<a href="javascript:void(0)" class="center-btn db ra3" id="logout">退出登录</a>
			</div>

			<!--footer star-->
			<footer class="page-footer fixed-footer" id="footer">
				<ul>
					<li>
						<a href="index.html">
							<i class="iconfont icon-shouye"></i>
							<p>商城</p>
						</a>
					</li>
					<li>
						<a href="#">
							<i class="iconfont icon-erweima1"></i>
							<p>二维码</p>
						</a>
					</li>
					<li>
						<a href="#">
							<i class="iconfont icon-kefu1"></i>
							<p>客服</p>
						</a>
					</li>
					<li class="active">
						<a href="center.html">
							<i class="iconfont icon-yonghuming"></i>
							<p>我的</p>
						</a>
					</li>
				</ul>
			</footer>
			<script type="text/javascript" src="./js/validate.js"></script>
			<script type="text/javascript">
				var findInfoUrl = baseUrl+ "/zuul-user/users/findUserInfo";
				var changeInfoUrl = baseUrl+ "/zuul-user/users/changeUserInfo";
				var oldParams = {};

				$(function() { // 页面就绪事件

					$("#logout").click(function() {
						var logoutUrl = baseUrl+ '/zuul-user/users/logout';
						$.get(logoutUrl, function(result) {});
						localStorage.clear();
						location.replace("index.html");
					});
					// 发送AJAX请求，获取用户信息
					$.get(findInfoUrl, {
						'uid': localStorage.getItem('uid')
					}, function(result) {
						var userInfo = result.data;

						// 回填表单数据
						$("#hname").html(userInfo.username);
						if (userInfo.phone == null) {
							$("#htel").prop("placeholder", "首次设置");
						} else {
							$("#htel").html(userInfo.phone);
						}
						// if(userInfo.idcard==null){
						// 	$("#idcard").prop("placeholder","首次设置");
						// }else{
						// 	$("#idcard").val(userInfo.idcard);
						// }
						// if(userInfo.gender==0){
						// 	$("#gender-f")[0].checked=true;
						// }else{
						// 	$("#gender-m")[0].checked=true;
						// }
						// 填充oldParams

						// oldParams.gender=userInfo.gender;
					});

					// 为手机号绑定验证逻辑
					$("#phone").bind("input", function() {

						$("#idcard").bind("input", function() {
							checkidcard("idcard", "邮箱格式不正确");
						})



						// 为提交按钮添加点击事件


					});


				});
			</script>
			<!--footer end-->
	</body>
	<script type="text/javascript" src="js/jquery-1.8.3.min.js"></script>
	<script src="js/mui.min.js"></script>
	<!-- <script src="js/others.js"></script> -->
	<script type="text/javascript" src="js/hmt.js"></script>
	<script src="slick/slick.js" type="text/javascript"></script>
	<!--插件-->
	<link rel="stylesheet" href="css/swiper.min.css">
	<script src="js/swiper.jquery.min.js"></script>
</html>
